package com.bk.controller.tranFlow;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.bk.entity.TranFlowInfo;
import com.bk.service.tranInfo.TranInfoService;
import com.bk.util.ReturnUtil;

@RestController/**交易流水*/
public class TranFlowController {
	
	@Autowired
	private TranInfoService tranInfoService;

	@PostMapping("/queryTranInfo")/**根据trantype的不同进行不同交易类型的查询*/
	public ReturnUtil<TranFlowInfo> queryTranInfoByTranType(@RequestParam("cardId") String cardId,@RequestParam("tranType") String tranType){
		 
		ReturnUtil<TranFlowInfo> ru = tranInfoService.queryTranInfoByTranType(cardId, tranType);
		return ru;
	}
}
